import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/child1',
      name: 'Child1',
      component: () => import('@/views/child/Child1.vue')
    },
    {
      path: '/child2',
      name: 'Child2',
      component: () => import('@/views/child/Child2.vue')
    },
    {
      path: '/child3',
      name: 'Child3',
      component: () => import('@/views/child/Child3.vue')
    }
  ]
})

export default router
